<?php
    
    header('Content-Type: text/plain');

/** (lazy) unit test for Cicp_Graph_Menu **/

include('../autoload.php');

// build menu
$menu = new Cicp_Graph_Menu("testmenu1");

// add buttons
$menu->addButton('reset highlights');
$menu->addButton('use all for brightness');
$menu->addButton('delete');
$menu->addButton('use x');
$menu->addButton('use z');
$menu->addButton('use u bla.');
$menu->addButton('use y');

// assign menu to a new node
$node = new Cicp_Graph_Node;
$node->assignMenu($menu);

echo $node;